import { App } from 'vue'
import VueClipboard from 'vue3-clipboard'
import permission from './permission'
import todo from './todo'
import lazy from './lazy'
import highlight from './highlight'

export default {
	install(app: App) {
		app.directive('perm', permission)
		app.directive('todo', todo)
		app.directive('lazy', lazy)
		app.directive('highlight', highlight)
		app.use(VueClipboard, {
			autoSetContainer: true,
			appendToBody: true
		})
	}
}
